@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="row">
            <div class="col-sm-3 b-r">
                <div class="panel panel-default">
                    <div class="panel-heading">商品分类</div>
                    <div class="panel-body dept-tree">
                        <ul id="goodsCateTree" class="ztree"></ul>
                    </div>
                </div>
            </div>
            <div class="col-sm-9">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>商品管理</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-8">
                                <#NameCon id="sGoodsCode" name="商品编码或名称"/>
                            </div>
                            <div class="col-sm-4">
                                <#button name="搜索" icon="fa-search" clickFun="GoodsSaleInfoDlg.search()"/>
                                <#button name="清空" icon="fa-search" clickFun="GoodsSaleInfoDlg.clear()"/>
                            </div>
                        </div>
                        <#table id="GoodsTable"/>
                        <!-- 点击table行弹出的模态框 -->
                        <div id="goodsDetail" class="modal fade" tabindex="-1" role="dialog">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                            <span aria-hidden="true">&times;</span></button>
                                        <h4 class="modal-title">商品详情</h4>
                                    </div>
                                    <div class="modal-body">
                                        <div class="row form-inline">
                                            <label for="goodsCode">商品编码:</label>
                                            <input id="goodsCode" type="text" name="goodsCode" disabled/>
                                            <label for="goodsName">商品名称:</label>
                                            <input id="goodsName" type="text" name="goodsName" disabled/>
                                        </div>
                                        <div class="row form-inline">
                                            <label for="goodsModel">商品型号:</label>
                                            <input id="goodsModel" type="text" name="goodsModel" disabled/>
                                            <label for="goodsUnit">商品单位:</label>
                                            <input id="goodsUnit" type="text" name="goodsUnit" disabled/>
                                        </div>
                                        <div class="row form-inline">
                                            <label for="goodsPurchasePrice">采购价格:</label>
                                            <input id="goodsPurchasePrice" type="text" name="goodsPurchasePrice" disabled/>
                                            <label for="goodsInventoryQuantity">库存数量:</label>
                                            <input id="goodsInventoryQuantity" type="text" name="goodsInventoryQuantity"
                                                   disabled/>
                                        </div>
                                        <div class="row form-inline">
                                            <label for="saleNumber" class="label-warning-light">销售数量:</label>
                                            <input id="saleNumber" type="text" name="saleNumber" placeholder="请输入销售数量"/>
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                        <button id="saveBtn" type="button" class="btn btn-primary">保存</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/salesmanagement/goodsSale/goodsSale_info.js"></script>
@}
